

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Report</title>
    </head>
    <body>
        <div class="nav">
	    <span class="menuButton"><g:link class="home" controller="person" action="home">Home</g:link></span>
            <span class="menuButton"><g:link class="list" action="list">Report List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New Report</g:link></span>
        </div>
        <div class="body">
            <h1>Show Report</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:report, field:'id')}</td>
                            
                        </tr>
 
                    
                        <tr class="prop">
                            <td valign="top" class="name">Associated File:</td>
                            
                            <td valign="top" class="value">
    				<g:if test="${report.fileName?.length() > 0}">
        		          <g:link action="downloadFile" id="${report.id}">${fieldValue(bean:report, field:'fileName')}</g:link>
    				</g:if>
			    </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Submit Date:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:report, field:'submitDate')}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${report?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </g:form>
            </div>
		<div class="paginateButtons">
                <input type="button" value="Back" onClick="history.back()">
            </div>
        </div>
    </body>
</html>
